function Request(argname){
	var url = document.location.href;
	var arrStr = url.substring(url.indexOf("?")+1).split("&");
	for(var i =0;i<arrStr.length;i++){
		var loc = arrStr[i].indexOf(argname+"=");
		if(loc!=-1){
			return arrStr[i].replace(argname+"=","").replace("?","");
			break;
		}
	}
	return "";
}
function ClearLog(){
	$("#loglist").empty();
	$.cookie("so_niaoyan_com_k","");
}
var so_niaoyan_com_k = $.cookie("so_niaoyan_com_k");
if (so_niaoyan_com_k == null || so_niaoyan_com_k == "" || so_niaoyan_com_k == "false") {
	$.cookie("so_niaoyan_com_k",Request("k"));
}else{
	var so_arr = so_niaoyan_com_k.split(",");
	if(so_arr.length < 9){
		so_niaoyan_com_k = Request("k") + "," + so_niaoyan_com_k;
	}else{
		so_niaoyan_com_k = Request("k");
		for(i = 0;i < 9 ;i++){
			so_niaoyan_com_k += "," + so_arr[i];
		}
	}
	$.cookie("so_niaoyan_com_k",so_niaoyan_com_k);
}
so_arr =  $.cookie("so_niaoyan_com_k").split(",");
so_niaoyan_com_k = "";
for(i=0;i<so_arr.length;i++){
	so_niaoyan_com_k += "<li><a href='http://so.niaoyan.com/uutxt/?k=" + $E(so_arr[i]) +"'>"+so_arr[i]+"</a></li>";
}
$("#loglist").append(so_niaoyan_com_k);